<%@ Page Title="Mail Supplier" Language="C#" MasterPageFile="~/Pages/admin/adminMaster.Master" AutoEventWireup="true" CodeBehind="SupplierMail.aspx.cs" Inherits="WarehouseWebAPP.Pages.admin.Mail_Pages.SupplierMail" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit.HTMLEditor" tagprefix="cc2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

    .style23
    {
        width: 473px;
            color: #6D6D6D;
        }
    .style22
    {
        color: #6D6D6D;
    }
    .style24
    {
        width: 425px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1" bgcolor="White" style="width: 102%">
        <tr>
            <td colspan="3" align="center">
                <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:Label ID="SentLabel" runat="server" ForeColor="#607894" 
    Text="Mail Sent" Visible="False" 
                Width="89px" BackColor="#FFFFCC"></asp:Label>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td colspan="3" align="center">
                <asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="1000">
                    <ProgressTemplate>

                        <img alt="" src="../../images/update.gif" 
    style="width: 31px; height: 31px" />
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </td>
        </tr>
        <tr bgcolor="White">
            <td class="style23">
                To:&nbsp; <cc1:ComboBox ID="MailToDropDownList" runat="server" 
                    AppendDataBoundItems="True" AutoCompleteMode="Append" 
                    DataSourceID="SupplierObjectDataSource" DataTextField="supplier_name" 
                    DataValueField="supplier_num" DropDownStyle="DropDownList" MaxLength="0" 
                    style="display: inline;">
                </cc1:ComboBox>
            </td>
            <td class="style24">
                <span class="style22">Subject:<asp:TextBox ID="SubjectTextBox" runat="server" Width="300px" 
                CssClass="style22"></asp:TextBox></span>
            </td>
            <td>
                <asp:Button ID="SendButton" runat="server" onclick="SendButton_Click" 
                BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid" 
                BorderWidth="1px"  Font-Names="Verdana" Font-Size="Small" ForeColor="#284775"
                Text="Send" style="height: 24px" />
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <cc2:Editor ID="BodyEditor" runat="server" />
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="SendButton" EventName="Click" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <span class="style22">
                <asp:ObjectDataSource ID="SupplierObjectDataSource" runat="server" 
                    SelectMethod="SupplierGet" TypeName="WarehouseWebAPP.code.BLL.SupplierBLL">
                </asp:ObjectDataSource>
                </span>
            </td>
        </tr>
    </table>
</asp:Content>
